<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"> 

<h:head>
	<script type="text/javascript">
		function handelClickComplete(){
		//	document.getElementById('msgAdminForm:btnRefresh').click();
			}

		function checkMsgLength(){
			var text = document.getElementById('msgSenderForm:text').value;
			var leftLength = 70-text.length;
			if(leftLength>0){
				document.getElementById('msgSenderForm:textLeft').innerHTML ="还可输入 "+leftLength+" 个字";
				}
			}

		
	</script>
	<link type="text/css" rel="stylesheet" href="../css/redmond/skin.css"/>   
	<title>Msg admin</title>
</h:head> 
<body style="font-family: Verdana, Arial, sans-serif;
font-size: 12px; margin: auto; width: 1024px"> 
 <p:idleMonitor timeout="1000000"   
            onidle="alert('idle')" onactive=""/>  
		<p:tabView style="height:600px;" dynamic="true" onTabChangeUpdate="msgSenderForm" tabChangeListener="#{globalBean.tabChange}">
			
			<p:tab title="短信发送" id="msgSenderTab">
				<ui:include src="/pages/msgSender.xhtml" />	
			
			</p:tab>
			<p:tab title="用户管理" id="addressBookTab">
				<ui:include src="/pages/addressBook.xhtml" />	
			</p:tab>
		</p:tabView>
		
	
</body> 
</html>
